﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LinkedService.Mobile.ServiceEntities
{
  [XmlType("answer")]
  public class Answer
  {
    #region Constructors
    /// <summary>
    /// Initializes a new instance of the <see cref="Answer"/> class.
    /// </summary>
    public Answer()
    {
    }
    #endregion

    #region Properties

    /// <summary>
    /// Gets or sets the identifier of the answer.
    /// </summary>
    [XmlElement("id")]
    public string id
    {
      get;
      set;
    }

    /// <summary>
    /// Gets or sets the url of the question
    /// </summary>
    [XmlElement("web-url")]
    public string WebUrl
    {
      get;
      set;
    }

    /// <summary>
    /// Gets or sets the author of the quesiton
    /// </summary>
    [XmlElement("author")]
    public Person Author
    {
      get;
      set;
    }
    #endregion

  }
}
